package com.lara1;

import java.util.HashSet;

class E{
	int i;
	E(int i){
		this.i=i;
	}
	public String toString(){
		return "i="+i;
	}
	public int hashCode(){
		return Integer.toString(i).hashCode();
	}
	public boolean equals(Object obj){
		E e1=(E)obj;
		return i==e1.i;
	}
}
public class Manager19 {
public static void main(String[] args) {
	HashSet s=new HashSet<>();
	s.add(new E(9));
	s.add(new E(9));
	s.add(new E(90));
	s.add(new E(90));
	s.add(new E(5));
	s.add(new E(5));
	System.out.println(s);
}
}
